<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="pragram" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache, must-revalidate"/>
    <meta http-equiv="expires" content="0"/>
    <meta name="renderer" content="webkit"/>
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title>导航</title>
    <link rel="stylesheet" href="/assets/css/common.css">
    <link rel="stylesheet" href="/assets/css/navigation_bar.css">

</head>
<body>
<div id="cms">
    <jsp:include page="title_bar.jsp"/>
    <div class="content">
        <div class="option-box clearfix">
         <c:forEach items="${sessionScope.menuList}" var="menu">
            <div class="option-unit">
                <a href="${menu.menuUrl}">
                    <img src="${menu.menuIcon}.png" class="option-top">
                    <img src="${menu.menuIcon}-write.png" class="option-top write">
                    <div class="option-middle">${menu.menuName}</div>
                    <div class="option-bottom">v2.0</div>
                </a>
            </div>
         </c:forEach>

        </div>

    </div>
</div>

</body>
<script type="text/javascript" src="/assets/js/lib/jquery-1.12.3.js"></script>

<script type="text/javascript" src="/assets/js/common.js"></script>
<script type="text/javascript" src="/assets/js/navigation_bar.js"></script>
<script type="text/javascript">


    //    document.getElementById("cur_user_name").innerHTML="用户为:"+curDay;

    <%--显示时间--%>
    function timer() {
        var curDay = new Date().Format("yyyy年MM月dd日 hh:mm:ss");
        document.getElementById("current_time").innerHTML = curDay;
    }
    setInterval("timer()", 1000);      //每秒刷新一次


    Date.prototype.Format = function (fmt) { //author: meizz
        var o = {
            "M+": this.getMonth() + 1, //月份
            "d+": this.getDate(), //日
            "h+": this.getHours(), //小时
            "m+": this.getMinutes(), //分
            "s+": this.getSeconds(), //秒
            "q+": Math.floor((this.getMonth() + 3) / 3), //季度
            "S": this.getMilliseconds() //毫秒
        };
        if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
        for (var k in o)
            if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
        return fmt;
    }

</script>
</html>